package com.ruoyi.electrical.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.electrical.mapper.ElectricalRateSubentryMapper;
import com.ruoyi.electrical.domain.ElectricalRateSubentry;
import com.ruoyi.electrical.service.IElectricalRateSubentryService;

/**
 * 【请填写功能名称】Service业务层处理
 *
 * @author ruoyi
 * @date 2022-05-10
 */
@Service
public class ElectricalRateSubentryServiceImpl implements IElectricalRateSubentryService
{
    @Autowired
    private ElectricalRateSubentryMapper electricalRateSubentryMapper;

    /**
     * 查询【请填写功能名称】
     *
     * @param subentryId 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public ElectricalRateSubentry selectElectricalRateSubentryBySubentryId(Long subentryId)
    {
        return electricalRateSubentryMapper.selectElectricalRateSubentryBySubentryId(subentryId);
    }

    /**
     * 查询【请填写功能名称】列表
     *
     * @param electricalRateSubentry 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<ElectricalRateSubentry> selectElectricalRateSubentryList(ElectricalRateSubentry electricalRateSubentry)
    {
        return electricalRateSubentryMapper.selectElectricalRateSubentryList(electricalRateSubentry);
    }

    /**
     * 新增【请填写功能名称】
     *
     * @param electricalRateSubentry 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertElectricalRateSubentry(ElectricalRateSubentry electricalRateSubentry)
    {
        return electricalRateSubentryMapper.insertElectricalRateSubentry(electricalRateSubentry);
    }

    /**
     * 修改【请填写功能名称】
     *
     * @param electricalRateSubentry 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateElectricalRateSubentry(ElectricalRateSubentry electricalRateSubentry)
    {
        return electricalRateSubentryMapper.updateElectricalRateSubentry(electricalRateSubentry);
    }

    /**
     * 批量删除【请填写功能名称】
     *
     * @param subentryIds 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteElectricalRateSubentryBySubentryIds(Long[] subentryIds)
    {
        return electricalRateSubentryMapper.deleteElectricalRateSubentryBySubentryIds(subentryIds);
    }

    /**
     * 删除【请填写功能名称】信息
     *
     * @param subentryId 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteElectricalRateSubentryBySubentryId(Long subentryId)
    {
        return electricalRateSubentryMapper.deleteElectricalRateSubentryBySubentryId(subentryId);
    }
}
